package com.gupaoedu.task.factory.simplefactory;

import com.gupaoedu.task.factory.IBrand;

/**
 * @author djl
 * @Title: BrandFactory
 * @Description: TODO
 * @date 2019/3/28
 */
public class BrandFactory {
    public IBrand create(Class<? extends IBrand> clazz){
        try {
            if (null != clazz) {
                return clazz.newInstance();
            }
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
}
